#!/usr/bin/env python
# -*- coding: utf-8 -*-
# title       :
# author      : jarry
import os
import sys
from jarryLibs.JQt.InitQtModule import *

from unipath import Path
import jarryLibs.load_ui_type as jlut
# import icons.icons_rc
# from icons import icons_rc
__CURRENT_PATH__ = Path(__file__)

uiFile = __CURRENT_PATH__.parent.child('ui').child('SceneCheckToolMain.ui')
Ui_MainUI, ui_Dialog = jlut.load_ui_type(uiFile)

page_uiFile = __CURRENT_PATH__.parent.child('ui').child('PluginPageWidget.ui')
page_Ui_MainUI, page_ui_Dialog = jlut.load_ui_type(page_uiFile)

if __name__ == "__main__":

    class MainUI(ui_Dialog, Ui_MainUI):
        def __init__(self, parent=None):
            super(MainUI, self).__init__(parent)
            self.setupUi(self)
            html_path = Path('D:\workspace\JTK\AppAction\Maya\plugins\TyhooPipline\scripts\SceneCheckTool\checkScript\cleanUnknowInfo\info.html')
            d = html_path.read_file(mode='rb+').decode('utf-8')
            self.descript_le.setHtml(d)
            # self.textEdit = QTextEdit()
            # d = self.textEdit.toHtml()
            # self.descript_le.setHtml(d)

    app = QApplication([])
    my_ui = MainUI()
    my_ui.show()
    app.exec_()